/**
 * Copyright (c) 2016-2019 人人开源 All rights reserved.
 *
 * https://www.renren.io
 *
 * 版权所有，侵权必究！
 */

package yancy;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import yancy.modules.sys.entity.Foo;
import yancy.modules.sys.service.FooService;


@SpringBootApplication
public class YancyApplication {

	public static void main(String[] args) {

		ApplicationContext ctx =  SpringApplication.run(YancyApplication.class, args);
		FooService fooService = ctx.getBean(FooService.class);
		fooService.insertFoo(new Foo());
	}

}
